home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2002-047.nasl < prev    next >
Text File  |  2005-01-14  |  3KB  |  99 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2002:047
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(13950);
  12.  script_bugtraq_id(5344);
  13.  script_version ("$Revision: 1.3 $");
  14.  script_cve_id("CAN-2002-0638");
  15.  
  16.  name["english"] = "MDKSA-2002:047: util-linux";
  17.  
  18.  script_name(english:name["english"]);
  19.  
  20.  desc["english"] = "
  21. The remote host is missing the patch for the advisory MDKSA-2002:047 (util-linux).
  22.  
  23.  
  24. Michal Zalewski found a vulnerability in the util-linux package with the chfn
  25. utility. This utility allows users to modify some information in the /etc/passwd
  26. file, and is installed setuid root. Using a carefully crafted attack sequence,
  27. an attacker can exploit a complex file locking and modification race that would
  28. allow them to make changes to the /etc/passwd file. To successfully exploit this
  29. vulnerability and obtain privilege escalation, there is a need for some
  30. administrator interaction, and the password file must over over 4kb in size; the
  31. attacker's entry cannot be in the last 4kb of the file.
  32.  
  33.  
  34. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2002:047
  35. Risk factor : High";
  36.  
  37.  
  38.  
  39.  script_description(english:desc["english"]);
  40.  
  41.  summary["english"] = "Check for the version of the util-linux package";
  42.  script_summary(english:summary["english"]);
  43.  
  44.  script_category(ACT_GATHER_INFO);
  45.  
  46.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  47.  family["english"] = "Mandrake Local Security Checks";
  48.  script_family(english:family["english"]);
  49.  
  50.  script_dependencies("ssh_get_info.nasl");
  51.  script_require_keys("Host/Mandrake/rpm-list");
  52.  exit(0);
  53. }
  54.  
  55. include("rpm.inc");
  56. if ( rpm_check( reference:"util-linux-2.10o-6.1mdk", release:"MDK7.1", yank:"mdk") )
  57. {
  58.  security_hole(0);
  59.  exit(0);
  60. }
  61. if ( rpm_check( reference:"util-linux-2.10o-6.1mdk", release:"MDK7.2", yank:"mdk") )
  62. {
  63.  security_hole(0);
  64.  exit(0);
  65. }
  66. if ( rpm_check( reference:"util-linux-2.10s-3.2mdk", release:"MDK8.0", yank:"mdk") )
  67. {
  68.  security_hole(0);
  69.  exit(0);
  70. }
  71. if ( rpm_check( reference:"util-linux-2.11h-3.5mdk", release:"MDK8.1", yank:"mdk") )
  72. {
  73.  security_hole(0);
  74.  exit(0);
  75. }
  76. if ( rpm_check( reference:"losetup-2.11n-4.3mdk", release:"MDK8.2", yank:"mdk") )
  77. {
  78.  security_hole(0);
  79.  exit(0);
  80. }
  81. if ( rpm_check( reference:"mount-2.11n-4.3mdk", release:"MDK8.2", yank:"mdk") )
  82. {
  83.  security_hole(0);
  84.  exit(0);
  85. }
  86. if ( rpm_check( reference:"util-linux-2.11n-4.3mdk", release:"MDK8.2", yank:"mdk") )
  87. {
  88.  security_hole(0);
  89.  exit(0);
  90. }
  91. if (rpm_exists(rpm:"util-linux-", release:"MDK7.1")
  92.  || rpm_exists(rpm:"util-linux-", release:"MDK7.2")
  93.  || rpm_exists(rpm:"util-linux-", release:"MDK8.0")
  94.  || rpm_exists(rpm:"util-linux-", release:"MDK8.1")
  95.  || rpm_exists(rpm:"util-linux-", release:"MDK8.2") )
  96. {
  97.  set_kb_item(name:"CAN-2002-0638", value:TRUE);
  98. }
  99.